<?php
namespace Models\Model;

use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway\TableGateway;
use Zend\Db\Sql;
use Zend\Db\Sql\Where;
use Zend\Db\Sql\Select;
use Zend\Paginator\Adapter\DbSelect;
use Zend\Paginator\Paginator;
use Zend\Db\Sql\Predicate;
use Zend\Db\Sql\Expression;

class RatingTable
{
    protected $tableGateway;
	protected $select;
    public function __construct(TableGateway $tableGateway)
    {
        $this->tableGateway = $tableGateway;
		$this->select = new Select();
    }
	public function postRating($data)
    {
		$data = array(
			'rating' 		=> $data['rating'], 			
			'user_id'  	 	=> $data['user_id'], 	
			'tracking_id' 	=> $data['trackingID'],   
			'added_date'	=> date('Y-m-d H:i:s'),
			'updated_date'	=> date('Y-m-d H:i:s'),			
			'status'	 	=> 0, 				
		);	
		$insertresult=$this->tableGateway->insert($data);	
		return $insertresult;	
    }		
}